import service from '@/service/request';

// 推荐节目  /program/recommend
export const getRecommendProgram = () => {
  return service({
    url: '/program/recommend',
  });
};
// 节目（电台）排行 /dj/program/toplist
export const getProgramRank = (params: { limit?: number; offset?: number } = { limit: 10 }) => {
  return service({
    url: '/dj/program/toplist',
    params,
  });
};
// 分类推荐 /dj/recommend/type
export const getDjRecommendByType = (type: number) => {
  return service({
    url: '/dj/recommend/type',
    params: {
      type,
    },
  });
};
// 类别热门电台 /dj/radio/hot
interface HotItem {
  cateId: number;
  limit?: number;
  offset?: number;
}
export const getDjRadioHot = (params: HotItem) => {
  return service({
    url: '/dj/radio/hot',
    params,
  });
};
